/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Scenery.Thing.Weapons.Weapons;

import Scenery.Thing.Weapons.Weapon;
import com.jme3.math.Matrix3f;
import com.jme3.math.Quaternion;
import com.jme3.math.Vector3f;
import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Box;
import com.jme3.scene.shape.Cylinder;
import jme3tools.optimize.GeometryBatchFactory;
import main.DumbMath;
import main.Memory.Memory;

/**
 *
 * @author usuario
 * 
 */

public class Axe extends Weapon {
    
    public void buildModel(){
        Cylinder joint = new Cylinder(6, 6, 0.1f,2f);
        Geometry gJoint = new Geometry("axejoint", joint);
        gJoint.setMaterial(Memory.getTextures().getMaterial("leather", "flat"));
        gJoint.setLocalRotation(DumbMath.PITCH090);
        gJoint.setLocalTranslation(0,0,0);
        Box axe = new Box(0.01f, 0.2f, 0.3f);
        Geometry gAxe = new Geometry("axe", axe);
        gAxe.setLocalTranslation(0.2f,0.8f,0.15f);
        gAxe.rotate(0,80,0);
        gAxe.setMaterial(Memory.getTextures().getMaterial("iron", "flat"));
        this.masterWeaponNode.attachChild(gAxe);
        this.masterWeaponNode.attachChild(gJoint);
        
       // GeometryBatchFactory.optimize(this.masterWeaponNode);
    }
}
